package co.fitstart.entity.courseware.fitnessgroup;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("coursewareEditStatus")
public enum CoursewareEditStatus {
    
    PREPARE("prepare", "编辑中"),
    
    EDITED("edited", "已编辑"),
    
    GENERATED("generated", "已发送");
    
    private String alias;
    
    private String description;
    
    private CoursewareEditStatus(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @return
     */
    public boolean isPrepare() {
        return this.equals(PREPARE);
    }
    
    /**
     * 
     * @return
     */
    public boolean isEdited() {
        return this.equals(EDITED);
    }
    
    /**
     * 
     * @return
     */
    public boolean isGenerated() {
        return this.equals(GENERATED);
    }
    
    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }
    
    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
}
